//
//  BIDCustomForRentLabel.m
//  HJGJCommunity
//
//  Created by mal on 2017/6/15.
//  Copyright © 2017年 mal. All rights reserved.
//

#import "BIDCustomForRentLabel.h"

@implementation BIDCustomForRentLabel

/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

- (CGRect)textRectForBounds:(CGRect)bounds limitedToNumberOfLines:(NSInteger)numberOfLines
{
    return CGRectMake(10, 0, bounds.size.width-10, bounds.size.height);
}

-(void)drawTextInRect:(CGRect)requestedRect
{
    CGRect actualRect = [self textRectForBounds:requestedRect limitedToNumberOfLines:self.numberOfLines];
    [super drawTextInRect:actualRect];
}

@end
